package com.etocrm.saas.lib.base.common.exception;

import com.etocrm.saas.lib.base.common.result.IResultCode;
import com.etocrm.saas.lib.base.common.result.ResultCodeEnum;

/**
 * 远程调用  业务异常类
 * <p>
 * Created by Xs on 2022/11/24.
 */
public class RemoteBusinessException extends BaseException {

    private String code;

    private String message;

    public RemoteBusinessException(IResultCode resultCode) {
        super(resultCode);
    }


    public RemoteBusinessException(String code, String msg) {
        super(ResultCodeEnum.FEIGN_BUSINESS_WARN);
        this.code = code;
        this.message = msg;
    }
}
